package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 添加口味
     * @param flavors
     */
    void addDishFlavor(List<DishFlavor> flavors);

    /**
     * 根据菜品id删除口味
     * @param ids
     */
    void deleteDish(List<Long> ids);

    /**
     * 根据菜品id获取口味
     * @param id
     * @return
     */
    List<DishFlavor> getByDishId(Long id);
}
